<template>
  <div class="wrap">
    <!-- <div class="back-btn" @click="fnBack">
      <img src="./../../assets/img/back-icon.png" alt="" />
      <span>返回</span>
    </div> -->
    <div class="logo">
      <img src="https://ya30images.hbwlife.com/wxmp/logo-yongan30.png" alt="" />
      <div class="version">版本号 v1.0.0</div>
    </div>

    <div class="ul">
      <div class="li" @click="goHref('feedback')">
        <div class="left">
          <div class="txt">意见反馈 <strong></strong></div>
        </div>
        <div class="right">
          <img src="./../../assets/img/right.png" />
        </div>
      </div>
      <div class="li" @click="goHref('userAgreement')">
        <div class="left">
          <div class="txt">用户协议<strong></strong></div>
        </div>
        <div class="right">
          <img src="./../../assets/img/right.png" />
        </div>
      </div>
      <div class="li" @click="goHref('privacyPolicy')">
        <div class="left">
          <div class="txt">隐私政策<strong></strong></div>
        </div>
        <div class="right">
          <img src="./../../assets/img/right.png" />
        </div>
      </div>
    </div>
    <div class="footer">Copyright @2025 北京金泳安科技有限公司 版权所有</div>
    <!-- <div class="footer">
      <div class="item">京ICP备： 19010610号-1</div>
      <div class="item">增值电信业务经营许可证：京B2-20203056</div>
      <div class="item">Copyright @2020 北京汉邦智慧科技有限公司 版权所有</div>
    </div> -->
  </div>
</template>

<script setup>
import { onMounted, ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'
let router = useRouter()
let route = useRoute()

let goHref = (txt) => {
  var protocol = window.location.protocol
  var hostname = window.location.hostname
  var port = window.location.port ? ':' + window.location.port : ''
  var baseUrl = protocol + '//' + hostname + port

  if (txt == 'privacyPolicy') {
    window.location.href = baseUrl + '/privacyPolicy.html#/'
  } else if (txt == 'userAgreement') {
    //192.168.30.52:8080/userAgreement.html#/
    window.location.href = baseUrl + '/userAgreement.html#/'
  } else if (txt == 'feedback') {
    //http://192.168.30.52:8080/my.html#/feedback
    router.push('/feedback')
  }
}

onMounted(() => {})
</script>

<style scoped>
.wrap {
  width: 100%;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  /* background: #f8f8f8; */
  background: #fff;
  color: #333;
  font-size: 0.16rem;
  position: relative;
}
/* .back-btn {
  position: fixed;
  top: 0;
  left: 0;
  background: #e2e2e2;
  border-radius: 0 0.1rem 0.1rem 0;
  color: #4b4d4f;
  font-size: 0.14rem;
  text-align: center;
  opacity: 0.8;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-left: 0.1rem;
  padding: 0.03rem 0.1rem;
  margin-top: 0.05rem;
}
.back-btn img {
  width: 0.2rem;
} */
.logo {
  width: 1.5rem;
  height: auto;
  margin: 0 auto;
  margin-top: 0.7rem;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
}
.logo img {
  width: 100%;
  height: 100%;
}
.version {
  font-size: 0.14rem;
  color: #676a6d;
}

.ul {
  width: 90%;
  border-radius: 0.08rem;
  background: #fff;
  margin-bottom: 1rem;
  margin: 0 auto;
  margin-top: 1rem;
  display: flex;
  flex-flow: column;
  justify-content: flex-start;
}
.ul .li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 0.5rem;
  line-height: 0.5rem;
  border-bottom: 1px solid #f5f5f0;
}

.li img {
  width: 0.2rem;
  height: 0.2rem;
  margin-left: 0.1rem;
}

.ul .li .right {
  height: 100%;
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  /* font-size: 0.14rem; */
}

.right-pic {
  width: 0.26rem;
  height: 0.26rem;
}
.right-icon {
  margin-left: 0.1rem;
  width: 0.16rem;
  height: 0.16rem;
}
.footer {
  font-size: 0.12rem;
  color: #676a6d;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
